package com.example.springworkback.Dao;

import com.example.springworkback.Entity.Inspectors;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.*;

@Repository
public interface InspectorsRepository {
    @Select("select * from inspectors where account=#{account} and password=#{password}")
    Inspectors findUserByUsernameAndPassword(@Param("account") String account, @Param("password") String password);

}
